package com.itheima.config;


import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration  // 声明配置类

@ComponentScan("com.itheima.service")
// 整合jdbc.properties
@PropertySource("classpath:jdbc.properties")
// 整合数据源
@Import({JdbcConfig.class,MybatisConfig.class})

@EnableTransactionManagement  // 开启事务管理
public class SpringConfig {
}
